<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddAnycolumnsToBasicNewStudents extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('basic_new_students', function (Blueprint $table) {
            //
            $table->string('graduated_class')->nullable()->comment('毕业学校的初三班级');
            $table->string('enroll_category')->nullable()->comment('报考类别');
            $table->string('enroll_professional')->nullable()->comment('报考专业');
            $table->string('parents_name')->nullable()->comment('家长姓名');
            $table->string('is_stay')->nullable()->comment('是否住宿');
            $table->string('mid_final_exam')->nullable()->comment('中考成绩');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('basic_new_students', function (Blueprint $table) {
            //
            $table->dropColumn('graduated_class');
            $table->dropColumn('enroll_category');
            $table->dropColumn('enroll_professional');
            $table->dropColumn('parents_name');
            $table->dropColumn('is_stay');
            $table->dropColumn('mid_final_exam');
        });
    }
}
